package com.spc.car.data.service.std.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.spc.car.common.utils.StringUtils;
import com.spc.car.data.entity.std.StdVocationalQualificationCertificate;
import com.spc.car.data.mapper.std.StdVocationalQualificationCertificateMapper;
import com.spc.car.data.service.std.StdVocationalQualificationCertificateService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 职业资格表 服务实现类
 * </p>
 *
 * @author 
 * @since 2020-04-01
 */
@Service
public class StdVocationalQualificationCertificateServiceImpl extends ServiceImpl<StdVocationalQualificationCertificateMapper, StdVocationalQualificationCertificate> implements StdVocationalQualificationCertificateService {

    @Override
    public List<StdVocationalQualificationCertificate> listStdVocationalQualificationCertificate(String name) {
        return list(new LambdaQueryWrapper<StdVocationalQualificationCertificate>()
                .like(StringUtils.isNotBlank(name), StdVocationalQualificationCertificate::getName, name)
        );
    }
}
